<<<<<<< HEAD ======= <<<<<<< HEAD >>>>>>> master Lab 04: Not Team 1

David’s Graph


<<<<<<< HEAD

=======

>>>>>>> master

Arie’s Graph


<<<<<<< HEAD

=======

>>>>>>> master

Ethan’s Graph


<<<<<<< HEAD

## [1] 0.2017992

Ryan’s Graph


<<<<<<< HEAD

=======

>>>>>>> master

Anderson’s Graph


<<<<<<< HEAD

=======

>>>>>>> master

Main questions and Importance:



Team Plot #1


<<<<<<< HEAD

## [1] 0.3925636

Team Plot #2


<<<<<<< HEAD

=======

>>>>>>> master
<<<<<<< HEAD

Preliminary Question Plots


=======

Recommendations


  • We recommend that mothers disregard the surgeon general’s assertions, as there is little to no statistical evidence that smoking effects premature deliveries or birth weights per gestational age. However, this study does not take into account other confounding variables that may be at play such as alcohol use, drug use, etc. Be very cautious about your overall health while being pregnant.

Preliminary Question Plots


>>>>>>> master
  • This graph compares the age at which mothers gave birth and seperates them into smokers and non-smokers.

  • The graph is useful for seeing if age has any indicator on whether or not a mother will be more likely to smoke will pregnant if she is older or younger.

<<<<<<< HEAD

* This graph compares the education of mothers who smoked while pregnant.

  • The graph could be useful for deciding if mothers were more likely to smoke while pregnant if they had less of an education, or a different type of education.

=======

* This graph compares the education of mothers who smoked while pregnant.

  • The graph could be useful for deciding if mothers were more likely to smoke while pregnant if they had less of an education, or a different type of education.

>>>>>>> master
  • This graph divides mothers into groups depending on the amount of times they have given birth and trys to examine whether more births led to women not smoking while pregnant.

Who Did what?


    <<<<<<< HEAD
  • Arie: Created individual graph, help write findings for team plot #2. Created repo on github and turned in project.

  • Anderson: Created individual graph and comments

  • David: Individual graph + analysis, Team graph 2 + analysis, Data restructure and formating.

  • Ethan:

  • Ryan: Created individual graph and preliminary graphs

  • =======
  • Arie:

  • Anderson:

  • David:

  • Ethan:

  • Ryan:

  • >>>>>>> master
<<<<<<< HEAD ======= ======= Lab 04: Not Team 1

David’s Graph


  • I used geom_density to show the distribution of birth wieght in ounces. I used facet command to show differences in the distribution based on whether or not the baby was premature. ( 1 is born before gestational age of 270, 0 is after 270)

  • The mean of the distribution for birth weight of premature babies (~100) is the smallest of the three distributions.

Arie’s Graph


  • I created this plot using geom_jitter to compare a mother’s age vs their birth weight. I set x = mother’s age and y = birth weight in aesthetic. I used ggtitle, xlab, and ylab to label all axis and the graph.

  • From this graph I found that between age’s 20-30, the birth weight is more conssitant. Then, after age 30, the graph shows that birth weight is less conssisent.

Ethan’s Graph


## [1] 0.2017992
  • I created this graph using geom_point and geom_smooth to plot mothers’ weights before pregnancy vs babys’ birth weights. I also used facets to separate this correlation by smoking habits to see if smoking affected the correlation between the two weights. I used xlab, ylab, ggtitle, subtitle, and non-default colors and shapes to enhance my graph’s aesthetic appeal.

  • I found that there is a minor positive correlation between mothers’ pre-pregnancy weights and babys’ birth weights. However, whether or not the mom never smokes or smokes now has no affect on this correlation.

Ryan’s Graph


  • I created this graph with geom_histogram to plot the amount of premature babies born for mother’s who smoked and mothers who did not smoke during pregnancy.

  • I found that there were born premature babies born from mothers who did not smoke than mothers who did smoke. This could be very misleading though as the number mothers who did not smoke during pregnancy is probably much larger than mothers who did smoke.

Anderson’s Graph


  • I created this graph using geom smooth and a facet grid. With the facet grid you can measure the differences in weight of the babies from mothers who smoke and don’t smoke. The x axis is the education level and the y axis is the birth weight.

  • I found that with my graph the weights of the babies from mothers who smoke are significantly lower. Also mothers with higher education seem to have slightly larger babies.

Main questions and Importance:


  • “Do mothers’ smoking habits affect the presence of premature births?” and “Do mothers’ smoking habits affect the correlation between their babys’ gestational age and birth weight?”

  • These questions are important because answering them will allow us to provide recommendations to mothers on whether or not smoking is hurtful for their newborn babies. Most parents care deeply about the well-being of their babies, who contain fragile health, making this statistical study very relevant and important.


Team Plot #1


## [1] 0.3925636
  • Findings: This graph answers our second main question, which is “Do mothers’ smoking habits affect the correlation between their babys’ gestational age and birth weight?” The surgeon general’s assumption was that newborns of mothers who smoke have smaller birth weights as gestational age rises than newborns of mothers who don’t smoke. This graph appears to prove otherwise because the smoker line of best fit has a steeper positive slope than the non-smoker line of best fit, meaning birth weight increases as gestational age rises at a slightly faster rate for newborns of mothers who smoke. Overall, there is a near- moderate positive correlation between gestational age and birth weight at an R value of 0.393.

Team Plot #2


  • Findings: This graph answers our first question, “Do mothers’ smoking habits affect the presence of premature births?” The surgeon general’s assumption was that mothers who smoked have increased rates of giving birth prematuraly. Our graph displays little correlation with this assumption. Instead it tells us that women who smoke give birth to less babies overall. However, there is a sligtht increase of premature births compared to women who do not smoke. Though it is not significant enough to say that smoking increases one’s chances of giving birth prematuraly.

  • Findings: This graph shows the distribution of of birth weight, relating it to premature birth and mothers that smoke. It appears that the birth weight of non-premature babies is lower, and the birth weight of premature babies is higher, for mothers that do smoke. While this is the opposite case for mothers that don’t smoke.

Preliminary Question Plots


  • This graph compares the age at which mothers gave birth and seperates them into smokers and non-smokers.

  • The graph is useful for seeing if age has any indicator on whether or not a mother will be more likely to smoke will pregnant if she is older or younger.

* This graph compares the education of mothers who smoked while pregnant.

  • The graph could be useful for deciding if mothers were more likely to smoke while pregnant if they had less of an education, or a different type of education.

  • This graph divides mothers into groups depending on the amount of times they have given birth and trys to examine whether more births led to women not smoking while pregnant.

Who Did what?


  • Arie:

  • Anderson:

  • David: Individual graph + analysis, Team graph 2 + analysis, Data restructure and formating.

  • Ethan:

  • Ryan:

>>>>>>> master >>>>>>> master